<template>
	<web-view :src="src"></web-view>
</template>

<script>
import getCurrentUri from '@/components/modelParser/libs/getCurrentUri.js';
export default {
	data() {
		return {
			title: '',
			src: '',
		};
	},
	onLoad(options) {
		this.title = options.title || '';
		this.src = options.url || '';
		this.src = decodeURIComponent(this.src);
	},
	onShareAppMessage(res) {
		return {
			title: this.title || '',
			path: getCurrentUri()
		};
	},
};
</script>